import request from '@/utils/request'

// 查询生产过程记录列表
export function listBulk_record(query) {
  return request({
    url: '/productionProcess/bulk_record/list',
    method: 'get',
    params: query
  })
}

// 查询生产过程记录详细
export function getBulk_record(id) {
  return request({
    url: '/productionProcess/bulk_record/' + id,
    method: 'get'
  })
}

// 新增生产过程记录
export function addBulk_record(data) {
  return request({
    url: '/productionProcess/bulk_record',
    method: 'post',
    data: data
  })
}

// 修改生产过程记录
export function updateBulk_record(data) {
  return request({
    url: '/productionProcess/bulk_record',
    method: 'put',
    data: data
  })
}
export function checkBulk_record(data) {
  return request({
    url: '/productionProcess/bulk_record/check',
    method: 'put',
    data: data
  })
}
// 删除生产过程记录
export function delBulk_record(id) {
  return request({
    url: '/productionProcess/bulk_record/' + id,
    method: 'delete'
  })
}


// 读取数据
export function handleDate(query) {
  return request({
    url: '/Productionline/interfaceReport//getGZJ',
    method: 'get',
    params: query
  })
}
